import 'package:flutter/material.dart';
import 'package:hao_ke/consts/consts.dart';
import 'package:hao_ke/pages/search_tab/search_tab_item.dart';
import 'package:hao_ke/widgets/search_bar_widget.dart';

class SearchTab extends StatelessWidget {
  const SearchTab({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: SearchBarWidget(locationFunc: (){},showMap: true,),
      ),
      body: Container(
        decoration: BoxDecoration(
          image: DecorationImage(
            image: new AssetImage('images/back_image.jpg'),
            fit: BoxFit.cover
          )
        ),
        child: ListView(
          children: [
            SearchTabItem(),
            SearchTabItem(),
            SearchTabItem(),
            SearchTabItem(),
          ],
        ),
      ),
    );
  }
}
